package com.ruoyi.bak.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bak.mapper.BakOperatorRecordMapper;
import com.ruoyi.bak.domain.BakOperatorRecord;
import com.ruoyi.bak.service.IBakOperatorRecordService;
import com.ruoyi.common.core.text.Convert;

/**
 * 操作记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-12
 */
@Service
public class BakOperatorRecordServiceImpl implements IBakOperatorRecordService 
{
    @Autowired
    private BakOperatorRecordMapper bakOperatorRecordMapper;

    /**
     * 查询操作记录
     * 
     * @param id 操作记录主键
     * @return 操作记录
     */
    @Override
    public BakOperatorRecord selectBakOperatorRecordById(Long id)
    {
        return bakOperatorRecordMapper.selectBakOperatorRecordById(id);
    }

    /**
     * 查询操作记录列表
     * 
     * @param bakOperatorRecord 操作记录
     * @return 操作记录
     */
    @Override
    public List<BakOperatorRecord> selectBakOperatorRecordList(BakOperatorRecord bakOperatorRecord)
    {
        return bakOperatorRecordMapper.selectBakOperatorRecordList(bakOperatorRecord);
    }

    /**
     * 新增操作记录
     * 
     * @param bakOperatorRecord 操作记录
     * @return 结果
     */
    @Override
    public int insertBakOperatorRecord(BakOperatorRecord bakOperatorRecord)
    {
        return bakOperatorRecordMapper.insertBakOperatorRecord(bakOperatorRecord);
    }

    /**
     * 修改操作记录
     * 
     * @param bakOperatorRecord 操作记录
     * @return 结果
     */
    @Override
    public int updateBakOperatorRecord(BakOperatorRecord bakOperatorRecord)
    {
        return bakOperatorRecordMapper.updateBakOperatorRecord(bakOperatorRecord);
    }

    /**
     * 批量删除操作记录
     * 
     * @param ids 需要删除的操作记录主键
     * @return 结果
     */
    @Override
    public int deleteBakOperatorRecordByIds(String ids)
    {
        return bakOperatorRecordMapper.deleteBakOperatorRecordByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除操作记录信息
     * 
     * @param id 操作记录主键
     * @return 结果
     */
    @Override
    public int deleteBakOperatorRecordById(Long id)
    {
        return bakOperatorRecordMapper.deleteBakOperatorRecordById(id);
    }
}
